/* ============================================================
   CESPAL - Widget de Accesibilidad (Daltonismo / Dislexia)
   ============================================================ */

/* ===== FILTROS APLICADOS AL SITIO ===== */
html.acc-daltonismo {
    filter: grayscale(1);
}

html.acc-dislexia body,
html.acc-dislexia input,
html.acc-dislexia textarea,
html.acc-dislexia select,
html.acc-dislexia button {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
}
html.acc-dislexia p,
html.acc-dislexia li,
html.acc-dislexia span,
html.acc-dislexia a,
html.acc-dislexia label,
html.acc-dislexia td,
html.acc-dislexia th,
html.acc-dislexia h1,
html.acc-dislexia h2,
html.acc-dislexia h3,
html.acc-dislexia h4 {
    letter-spacing: 0.04em !important;
    word-spacing: 0.12em !important;
    line-height: 1.7 !important;
}

/* ===== BOTÓN FLOTANTE ===== */
.acc-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9500;
}
.acc-toggle {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--c-green-bright);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), background var(--transition);
}
.acc-toggle:hover { background: var(--c-green-mid); transform: translateY(-2px); }
.acc-toggle svg { width: 26px; height: 26px; }

/* ===== PANEL ===== */
.acc-panel {
    position: absolute;
    bottom: 64px;
    left: 0;
    width: 300px;
    max-width: calc(100vw - 48px);
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.acc-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.acc-panel__header {
    background: var(--c-green-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
}
.acc-panel__close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.85;
    transition: background var(--transition), opacity var(--transition);
}
.acc-panel__close:hover { background: rgba(255,255,255,0.15); opacity: 1; }

.acc-panel__body { padding: 18px; }
.acc-panel__tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-green-bright);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.acc-profiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.acc-profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 1.5px solid #e2e2e2;
    border-radius: var(--radius);
    background: var(--c-light);
    color: var(--c-text);
    font-size: 12.5px;
    font-weight: 600;
    transition: all var(--transition);
}
.acc-profile-btn svg { width: 22px; height: 22px; }
.acc-profile-btn__aa {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.acc-profile-btn:hover { border-color: var(--c-green-bright); }
.acc-profile-btn.is-active {
    background: var(--c-green-bright);
    border-color: var(--c-green-bright);
    color: white;
}

.acc-panel__desc {
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.acc-reset {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 1.5px solid var(--c-green-dark);
    border-radius: var(--radius);
    background: transparent;
    color: var(--c-green-dark);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
}
.acc-reset svg { width: 15px; height: 15px; }
.acc-reset:hover { background: var(--c-green-dark); color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .acc-widget { bottom: 16px; left: 16px; }
    .acc-panel { width: 280px; }
}
